#ifndef CLIENTWIDGET_H
#define CLIENTWIDGET_H

#include <QWidget>
#include <QTcpSocket>
#include <QFile>
namespace Ui {
class ClientWidget;
}

class ClientWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ClientWidget(QWidget *parent = nullptr);
    ~ClientWidget();

private slots:
    void on_buttonConnect_clicked();

private:
    Ui::ClientWidget *ui;

    QTcpSocket * tcpSocket;
    bool isStart;

    QString fileName;//文件名字
    qint64 fileSize;//文件大小
    qint64 recvSize;//已接收的文件大小

    QFile file;
};

#endif // CLIENTWIDGET_H
